package top.jiangqiang.qyblog.core.service;

import top.jiangqiang.qyblog.common.base.query.PageResult;
import top.jiangqiang.qyblog.common.base.response.Result;
import top.jiangqiang.qyblog.core.base.service.BaseService;
import top.jiangqiang.qyblog.core.domain.dto.DraftQueryDto;
import top.jiangqiang.qyblog.core.domain.dto.DraftSaveOrUpdateDto;
import top.jiangqiang.qyblog.core.domain.entity.Draft;
import top.jiangqiang.qyblog.core.domain.vo.DraftVo;

/**
 * <p>
 * 文章草稿 服务类
 * </p>
 *
 * @author JiangQiang
 * @since 2023-07-23
 */
public interface IDraftService extends BaseService<Draft> {

    Result<DraftVo> getDraftById(Long id);

    Result<DraftVo> saveOrUpdateDraft(DraftSaveOrUpdateDto draftSaveOrUpdateDto);

    Boolean deleteDraftById(Long id);

    PageResult<DraftVo> findByCondition(DraftQueryDto draftQueryDto);
}
